From 8af191e52dc664ae32917cdb020c4d8be2f4094d Mon Sep 17 00:00:00 2001 From: Corey Berla Date: Wed, 19 Oct 2022 09:17:39 -0700 Subject: [PATCH] filechooserwidget: Expose selection model FileChooserCell may need to change the selection during a DND. --- gtk/gtkfilechooserwidget.c | 5 +++++ gtk/gtkfilechooserwidgetprivate.h | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index eb5c93fca1..4ee063cdf7 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -7341,3 +7341,8 @@ gtk_file_chooser_widget_get_choice (GtkFileChooser *chooser, return NULL; } +GtkSelectionModel * +gtk_file_chooser_widget_get_selection_model (GtkFileChooserWidget *chooser) +{ + return chooser->selection_model; +} diff --git a/gtk/gtkfilechooserwidgetprivate.h b/gtk/gtkfilechooserwidgetprivate.h index e894df3e9d..91fdddd962 100644 --- a/gtk/gtkfilechooserwidgetprivate.h +++ b/gtk/gtkfilechooserwidgetprivate.h @@ -23,6 +23,7 @@ #include #include "gtkfilechooserwidget.h" +#include "gtkselectionmodel.h" G_BEGIN_DECLS @@ -39,6 +40,9 @@ gtk_file_chooser_widget_initial_focus (GtkFileChooserWidget *chooser); GSList * gtk_file_chooser_widget_get_selected_files (GtkFileChooserWidget *impl); +GtkSelectionModel * +gtk_file_chooser_widget_get_selection_model (GtkFileChooserWidget *chooser); + G_END_DECLS #endif /* __GTK_FILE_CHOOSER_WIDGET_PRIVATE_H__ */ -- 2.30.2